package com.hao.wms.service.impl;

import com.hao.wms.dao.IClientDao;
import com.hao.wms.domain.Client;
import com.hao.wms.query.PageResult;
import com.hao.wms.query.QueryObject;
import com.hao.wms.service.IClientService;

import java.util.List;

public class ClientServiceImpl implements IClientService {
	private IClientDao dao;
	

	public void setDao(IClientDao dao) {
		this.dao = dao;
	}

	@Override
	public void save(Client client) {
		dao.save(client);

	}

	@Override
	public void update(Client client) {
		dao.update(client);

	}

	@Override
	public void delete(Client client) {
		dao.delete(client);

	}

	@Override
	public Client get(Long id) {
		return dao.get(id);
	}

	@Override
	public List<Client> list() {
		return dao.list();
	}

	@Override
	public PageResult query(QueryObject qo) {
		return dao.query(qo);
	}
	
	

}
